from django.urls import path, re_path

from rest_framework import routers

from . import views

router = routers.DefaultRouter()

urlpatterns = [
    path('csrf', views.get_csrf, name='api-csrf'),
    path('login', views.login_view, name='api-login'),
    path('logout', views.logout_view, name='api-logout'),
    path('session', views.SessionView.as_view(), name='api-session'),
    path('whoami', views.WhoAmIView.as_view(), name='api-whoami'),
    path('rooms', views.room_list, name='api-room-list'),
    path('signup', views.signup_view, name='api-signup')
]